import layout from "./layout/index.vue"
import icon from "./icon/index.vue"
import imgCode from "./imgCode/index.vue"
import grid from "./grid/index.vue"
import cardCell from "./cardCell/index.vue"
import swipe from "./swipe/index.vue"
import select from "./select/index.vue"
import date from "./date/index.vue"
import tree from "./tree/index.vue"
import treeSelect from "./tree/treeSelect.vue"
import float from "./float/index.vue"
import navBarRight from "./navBarRight/index.vue"
const components:any = {
  layout,
  icon,
  imgCode,
  grid,
  cardCell,
  swipe,
  select,
  date,
  tree,
  treeSelect,
  float,
  navBarRight
};
const install = function (Vue:any) {
  Object.keys(components).forEach(key => {
    Vue.component(components[key].name, components[key]);
  })
}
export default {
  install
}